package com.pzb.page.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.pzb.common.core.domain.BaseEntity;

/**
 * 热区切图对象 pg_page_item_hotspotarea
 * 
 * @author pzb
 * @date 2021-09-29
 */
public class PgPageItemHotspotarea extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    private Long id;

    /** p_page_item表中的id */
    private Long itemId;

    /** X起始点 */
    private BigDecimal pointx;

    /** Y起始点 */
    private BigDecimal pointy;

    /** 热区宽度 */
    private BigDecimal width;

    /** 热区高度 */
    private BigDecimal height;

    /** 链接类型：1首页；2商品；3商品分类；4优惠券；5自定义页面；6搜索页 */
    private Integer linkType;

    /** 链接地址 */
    private String linkAddress;

    private String linkGoodsName;

    /** 排序号 */
    private Integer sort;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setItemId(Long itemId) 
    {
        this.itemId = itemId;
    }

    public Long getItemId() 
    {
        return itemId;
    }
    public void setPointx(BigDecimal pointx) 
    {
        this.pointx = pointx;
    }

    public BigDecimal getPointx() 
    {
        return pointx;
    }
    public void setPointy(BigDecimal pointy) 
    {
        this.pointy = pointy;
    }

    public BigDecimal getPointy() 
    {
        return pointy;
    }
    public void setWidth(BigDecimal width) 
    {
        this.width = width;
    }

    public BigDecimal getWidth() 
    {
        return width;
    }
    public void setHeight(BigDecimal height) 
    {
        this.height = height;
    }

    public BigDecimal getHeight() 
    {
        return height;
    }
    public void setLinkType(Integer linkType) 
    {
        this.linkType = linkType;
    }

    public Integer getLinkType() 
    {
        return linkType;
    }
    public void setLinkAddress(String linkAddress) 
    {
        this.linkAddress = linkAddress;
    }

    public String getLinkAddress() 
    {
        return linkAddress;
    }

    public String getLinkGoodsName() {
        return linkGoodsName;
    }

    public void setLinkGoodsName(String linkGoodsName) {
        this.linkGoodsName = linkGoodsName;
    }

    public void setSort(Integer sort)
    {
        this.sort = sort;
    }

    public Integer getSort() 
    {
        return sort;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("itemId", getItemId())
            .append("pointx", getPointx())
            .append("pointy", getPointy())
            .append("width", getWidth())
            .append("height", getHeight())
            .append("linkType", getLinkType())
            .append("linkAddress", getLinkAddress())
            .append("sort", getSort())
            .toString();
    }
}
